package com.example.demoview;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class SslcData {

    public Map UserDataA(){

        Map data_jcylt_detail_map = new HashMap();
        data_jcylt_detail_map.put("dt","2020-08-12 17:51:33");
        data_jcylt_detail_map.put("avatar","https://wx.qlogo.cn/mmopen/vi_32/4gkTVBzaxkFJZneSXnSZIVibhdwOkRpLAZnzQyzqyvt9BTZwE2jo8gVeIY99swMZaBMxLj2NN40dKkJ9ibrr7rEQ/132");
        data_jcylt_detail_map.put("type","血压");
        data_jcylt_detail_map.put("img","http://elzhyy.gdlbao.com:5556/static/image/bp.png");
        data_jcylt_detail_map.put("name","冯*要");
        data_jcylt_detail_map.put("sex","男");
        data_jcylt_detail_map.put("age","50");
        List<Map> detail = new ArrayList<>();
        Map detail_map=new HashMap();
        detail_map.put("text","");
        detail_map.put("val","116/87mmHg，87bpm");
        detail.add(detail_map);
        data_jcylt_detail_map.put("detail",detail);

        return data_jcylt_detail_map;

    }

    public Map UserDataB(){

        Map data_jcylt_detail_map = new HashMap();
        data_jcylt_detail_map.put("dt","2020-08-12 17:51:33");
        data_jcylt_detail_map.put("avatar","https://wx.qlogo.cn/mmopen/vi_32/4gkTVBzaxkFJZneSXnSZIVibhdwOkRpLAZnzQyzqyvt9BTZwE2jo8gVeIY99swMZaBMxLj2NN40dKkJ9ibrr7rEQ/132");
        data_jcylt_detail_map.put("type","血糖");
        data_jcylt_detail_map.put("img","http://elzhyy.gdlbao.com:5556/static/image/bp.png");
        data_jcylt_detail_map.put("name","李*要");
        data_jcylt_detail_map.put("sex","女");
        data_jcylt_detail_map.put("age","41");
        List<Map> detail = new ArrayList<>();
        Map detail_map=new HashMap();
        detail_map.put("text","");
        detail_map.put("val","6.8mmol/L");
        detail.add(detail_map);
        data_jcylt_detail_map.put("detail",detail);

        return data_jcylt_detail_map;

    }

    public Map UserDataC(){

        Map data_jcylt_detail_map = new HashMap();
        data_jcylt_detail_map.put("dt","2020-08-12 17:51:33");
        data_jcylt_detail_map.put("avatar","https://wx.qlogo.cn/mmopen/vi_32/4gkTVBzaxkFJZneSXnSZIVibhdwOkRpLAZnzQyzqyvt9BTZwE2jo8gVeIY99swMZaBMxLj2NN40dKkJ9ibrr7rEQ/132");
        data_jcylt_detail_map.put("type","远程心电诊断");
        data_jcylt_detail_map.put("img","http://elzhyy.gdlbao.com:5556/static/image/bp.png");
        data_jcylt_detail_map.put("name","李*和");
        data_jcylt_detail_map.put("sex","男");
        data_jcylt_detail_map.put("age","40");
        List<Map> detail = new ArrayList<>();
        Map ua=UserDataCa();
        Map ub=UserDataCb();
        Map uc=UserDataCc();

        detail.add(ua);
        detail.add(ub);
        detail.add(uc);
        data_jcylt_detail_map.put("detail",detail);

        return data_jcylt_detail_map;

    }

    public Map UserDataCa(){
        Map data_jcylt_detail_map = new HashMap();
        data_jcylt_detail_map.put("text","诊断:");
        data_jcylt_detail_map.put("val","阳江市人民医院远程心电诊断中心-林秋萍");
        return data_jcylt_detail_map;

    }

    public Map UserDataCb(){
        Map data_jcylt_detail_map = new HashMap();
        data_jcylt_detail_map.put("text","上传:");
        data_jcylt_detail_map.put("val","埠场组-林秋萍");
        return data_jcylt_detail_map;

    }

    public Map UserDataCc(){
        Map data_jcylt_detail_map = new HashMap();
        data_jcylt_detail_map.put("text","结果:");
        data_jcylt_detail_map.put("val","1.窦性节律 2.一度房室传导阻滞");
        return data_jcylt_detail_map;

    }



    public Map DataSslc() {

        List<Map> data = new ArrayList<>();
        Map UserA=UserDataA();
        Map UserB=UserDataB();
        Map UserC=UserDataC();

        data.add(UserA);
        data.add(UserB);
        data.add(UserC);

        Map rejson = new HashMap();
        rejson.put("code",0);
        rejson.put("data",data);
        return rejson;
    }

}
